package com.cy.sc.service;

import com.cy.sc.dao.DeptDao;
import com.cy.sc.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements IDeptService {
    @Autowired
    private DeptDao deptDao;

    @Override
    public boolean addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public Dept getDeptById(long id) {
        return deptDao.getDeptById(id);
    }

    @Override
    public List<Dept> getDeptAll() {
        return deptDao.getDeptAll();
    }
}
